import pytest
from buxi3.run import Log,send_mail
from datetime import datetime
if __name__ == '__main__':
    time=datetime.now().strftime("Y%m%d_%H%M%S")
    Log()
    pytest.main(["./TestCase.py",f"--html=baidu{time}.html"])
    send_mail([f"baidufirstpagewebtestlog{time}.txt"])